package com.weimob.mcloud.wechatwork.customer.service.user.enums;

import lombok.Getter;

/**
 * 企微短参发送场景枚举
 * @author WEIMOB
 */
@Getter
public enum ShortURLSendSceneEnum {

    /**
     * 短参 发送场景 枚举值
     */
    SPEECH_CRAFT("speechArt", "话术侧边栏"),
    SINGLE_GROUP_MSG("clientSend", "企业群发（客户）"),
    CHAT_GROUP_MSG("groupSend", "企业群发（客户群）"),
    CHANNEL_FRIENDS_WELCOME("channelFriendsWelcome", "渠道欢迎语"),
    FISSION_FRIENDS_WELCOME("fissionFriendsWelcome", "裂变欢迎语"),
    FRIENDS_WELCOME("friendsWelcome", "好友欢迎语"),
    PERSONAL_SOP("personalSOP", "个人SOP"),
    CHAT_SOP("chatSOP", "群SOP"),
    GOODS_SEND("goodsSend", "商品库侧边栏"),
    COUPON_SEND("couponSend", "优惠券侧边栏"),
    FISSION_ACTIVITY("fissionActivity", "客户裂变"),
    CHAT_FISSION("chatFission", "群裂变"),
    TAG_BY_GROUP("tagByGroup", "标签建群"),
    RED_ENVELOPE("redEnvelope", "小红包"),
    RADAR("radarSend", "雷达侧边栏"),
    WECHAT_MOMENT("wechatMoment", "微信朋友圈"),
    REWARD_GOODS_SEND("rewardgoodsSend", "发送分销商品"),


    ;


    private final String value;
    private final String desc;

    ShortURLSendSceneEnum(String value, String desc) {
        this.desc = desc;
        this.value = value;
    }

    public static ShortURLSendSceneEnum getEnumByValue(String value) {
        ShortURLSendSceneEnum[] values = ShortURLSendSceneEnum.values();
        for (ShortURLSendSceneEnum sendSceneEnum : values) {
            if (sendSceneEnum.getValue().equals(value)) {
                return sendSceneEnum;
            }
        }
        return null;
    }

}
